<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>libnetconf: NETCONF rpc</title>

<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="../../cesnet-logo-125.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnetconf
   &#160;<span id="projectnumber">0.1.1</span>
   </div>
   <div id="projectbrief">NETCONF library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0-20120409 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('db/de9/group__rpc.html','../../');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">NETCONF rpc</div>  </div>
</div><!--header-->
<div class="contents">

<p>libnetconf's functions for handling NETCONF &lt;rpc&gt; messages.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gab21d1d39737065c552f2ccc5b4819262"><td class="memItemLeft" align="right" valign="top">typedef struct nc_msg&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a></td></tr>
<tr class="memdesc:gab21d1d39737065c552f2ccc5b4819262"><td class="mdescLeft">&#160;</td><td class="mdescRight">rpc message.  <a href="#gab21d1d39737065c552f2ccc5b4819262"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga4088fac1dd592062b27ff5b0e1708d00"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ae27a06c29d4cb56cce4298bc54dc498a">NC_RPC_UNKNOWN</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00a4c352cf3bf15069fc76e4ac698de0a8c">NC_RPC_HELLO</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ab9542d7955d9821f23b5909f3dbec7bb">NC_RPC_DATASTORE_READ</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00ab283d1c39df65fe56607329bc3c946f9">NC_RPC_DATASTORE_WRITE</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga4088fac1dd592062b27ff5b0e1708d00aa7e77d1cd094384f2683352c63a4fccb">NC_RPC_SESSION</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga4088fac1dd592062b27ff5b0e1708d00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of &lt;rpc&gt; operation types.  <a href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">More...</a><br/></td></tr>
<tr class="memitem:ga3e6fc59e2d06c1c0edb36ee64ee9cc07"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a> { <br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a7ca4781a2c8644c3c15e3b0cd9116090">NC_OP_UNKNOWN</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a9f918e6ed1c58fb70ffe4cbd05882332">NC_OP_GETCONFIG</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07ae7c153c569fe9ca06532dadc41dce78f">NC_OP_GET</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a545f2b8ad13fc1cb449f078908312ef1">NC_OP_EDITCONFIG</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07af5cc206ce4cd2b20cd562bb01e0a8da3">NC_OP_CLOSESESSION</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07a01a1b829ca743ac8f8e8444d71f16d0d">NC_OP_KILLSESSION</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07abc36a612cfba2cf3462d99fae4ab4ac5">NC_OP_COPYCONFIG</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07abf39ac97e04fd8d77d6a409a004eb234">NC_OP_DELETECONFIG</a>, 
<br/>
&#160;&#160;<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07af07ffd285bc743fcbdeace96f2b21d22">NC_OP_LOCK</a>, 
<a class="el" href="../../db/de9/group__rpc.html#gga3e6fc59e2d06c1c0edb36ee64ee9cc07aa4071db38c423865b24543cb504a4b42">NC_OP_UNLOCK</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga3e6fc59e2d06c1c0edb36ee64ee9cc07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of supported &lt;rpc&gt; operations.  <a href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">More...</a><br/></td></tr>
<tr class="memitem:ga9e74498f9118686c7fb8dfe2c2459706"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a> { <a class="el" href="../../db/de9/group__rpc.html#gga9e74498f9118686c7fb8dfe2c2459706ab584539474b828102a0b7238b614abd4">NC_FILTER_SUBTREE</a>
 }</td></tr>
<tr class="memdesc:ga9e74498f9118686c7fb8dfe2c2459706"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of supported NETCONF filter types.  <a href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9a4b99f1ccfbf736f35730ea45bed8dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga9a4b99f1ccfbf736f35730ea45bed8dc">nc_session_send_rpc</a> (struct nc_session *session, const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga9a4b99f1ccfbf736f35730ea45bed8dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send &lt;rpc&gt; request via specified NETCONF session. This function is supposed to be performed only by NETCONF clients.  <a href="#ga9a4b99f1ccfbf736f35730ea45bed8dc"></a><br/></td></tr>
<tr class="memitem:ga30e4280a6d10447d210ebdfb2befb4c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga30e4280a6d10447d210ebdfb2befb4c6">nc_session_recv_rpc</a> (struct nc_session *session, <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> **rpc)</td></tr>
<tr class="memdesc:ga30e4280a6d10447d210ebdfb2befb4c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive &lt;rpc&gt; request from the specified NETCONF session. This function is supposed to be performed only by NETCONF servers.  <a href="#ga30e4280a6d10447d210ebdfb2befb4c6"></a><br/></td></tr>
<tr class="memitem:ga53db624265a53d44d597c9ac7df74259"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d0/de2/group__reply.html#ga40338a1274759a932a7c2c7b8ed0121d">nc_reply</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga53db624265a53d44d597c9ac7df74259">nc_session_send_recv</a> (struct nc_session *session, const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga53db624265a53d44d597c9ac7df74259"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send &lt;rpc&gt; and receive &lt;rpc-reply&gt; via the specified NETCONF session.  <a href="#ga53db624265a53d44d597c9ac7df74259"></a><br/></td></tr>
<tr class="memitem:ga3212b7af605b6bdf83b893979c3bcc79"><td class="memItemLeft" align="right" valign="top">struct nc_filter *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3212b7af605b6bdf83b893979c3bcc79">nc_filter_new</a> (<a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a> type, const char *filter)</td></tr>
<tr class="memdesc:ga3212b7af605b6bdf83b893979c3bcc79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create new NETCONF filter of the specified type.  <a href="#ga3212b7af605b6bdf83b893979c3bcc79"></a><br/></td></tr>
<tr class="memitem:ga0dbfd598d6fd303819817370cdf63229"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga0dbfd598d6fd303819817370cdf63229">nc_filter_free</a> (struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga0dbfd598d6fd303819817370cdf63229"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy filter structure.  <a href="#ga0dbfd598d6fd303819817370cdf63229"></a><br/></td></tr>
<tr class="memitem:ga3e840368c40be2ea4d5201edbd3adaca"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca">nc_rpc_dump</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga3e840368c40be2ea4d5201edbd3adaca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dump the rpc message into a string.  <a href="#ga3e840368c40be2ea4d5201edbd3adaca"></a><br/></td></tr>
<tr class="memitem:ga16bda6ae6ad26653e8793abf58ebec2b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga16bda6ae6ad26653e8793abf58ebec2b">nc_rpc_build</a> (const char *rpc_dump)</td></tr>
<tr class="memdesc:ga16bda6ae6ad26653e8793abf58ebec2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build &lt;rpc&gt; message from the string. This is the reverse function of the <a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca" title="Dump the rpc message into a string.">nc_rpc_dump()</a>.  <a href="#ga16bda6ae6ad26653e8793abf58ebec2b"></a><br/></td></tr>
<tr class="memitem:ga3bb3dd2d08b439d612f5954e3ce78205"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3bb3dd2d08b439d612f5954e3ce78205">nc_rpc_get_msgid</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga3bb3dd2d08b439d612f5954e3ce78205"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get message-id of the given rpc.  <a href="#ga3bb3dd2d08b439d612f5954e3ce78205"></a><br/></td></tr>
<tr class="memitem:gabf639574395456fb6f4bade36fb4babd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gabf639574395456fb6f4bade36fb4babd">nc_rpc_get_op</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gabf639574395456fb6f4bade36fb4babd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get operation of the given rpc.  <a href="#gabf639574395456fb6f4bade36fb4babd"></a><br/></td></tr>
<tr class="memitem:gade3f111e7c7727d512313b4875fd8f50"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gade3f111e7c7727d512313b4875fd8f50">nc_rpc_get_op_content</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gade3f111e7c7727d512313b4875fd8f50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get content of the operation specification from the given rpc.  <a href="#gade3f111e7c7727d512313b4875fd8f50"></a><br/></td></tr>
<tr class="memitem:gaa502fb30575000775b29a764101c1bef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaa502fb30575000775b29a764101c1bef">nc_rpc_get_type</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gaa502fb30575000775b29a764101c1bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get type of the rpc message.  <a href="#gaa502fb30575000775b29a764101c1bef"></a><br/></td></tr>
<tr class="memitem:gab240067d45d58c945cdfd61948751379"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gab240067d45d58c945cdfd61948751379">nc_rpc_get_target</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gab240067d45d58c945cdfd61948751379"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get target datastore type (running, startup, candidate) of the rpc request.  <a href="#gab240067d45d58c945cdfd61948751379"></a><br/></td></tr>
<tr class="memitem:ga3fcf5083b04a294e935a2897c212065b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga3fcf5083b04a294e935a2897c212065b">nc_rpc_get_source</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga3fcf5083b04a294e935a2897c212065b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get source datastore type (running, startup, candidate) of the rpc request.  <a href="#ga3fcf5083b04a294e935a2897c212065b"></a><br/></td></tr>
<tr class="memitem:ga05a10e0b6c89ac04426410f399b87257"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga05a10e0b6c89ac04426410f399b87257">nc_rpc_get_config</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga05a10e0b6c89ac04426410f399b87257"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get serialized content of the config parameter (&lt;config&gt; itself is not part of the returned data). This function is valid only for &lt;copy-config&gt; and &lt;edit-config&gt; RPCs.  <a href="#ga05a10e0b6c89ac04426410f399b87257"></a><br/></td></tr>
<tr class="memitem:gaf867eacee93e3596371415d028e62d29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d7a/netconf_8h.html#a5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaf867eacee93e3596371415d028e62d29">nc_rpc_get_defop</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:gaf867eacee93e3596371415d028e62d29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get default-operation type, valid only for &lt;edit-config&gt; RPCs.  <a href="#gaf867eacee93e3596371415d028e62d29"></a><br/></td></tr>
<tr class="memitem:ga488f894b9fa4866326837a9ed0575e36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d7a/netconf_8h.html#a8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga488f894b9fa4866326837a9ed0575e36">nc_rpc_get_erropt</a> (const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga488f894b9fa4866326837a9ed0575e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get error-option type, valid only for &lt;edit-config&gt; RPCs.  <a href="#ga488f894b9fa4866326837a9ed0575e36"></a><br/></td></tr>
<tr class="memitem:ga4041bda37caa9eedb7a1e2534280f3df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4041bda37caa9eedb7a1e2534280f3df">nc_rpc_free</a> (<a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *rpc)</td></tr>
<tr class="memdesc:ga4041bda37caa9eedb7a1e2534280f3df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free rpc message.  <a href="#ga4041bda37caa9eedb7a1e2534280f3df"></a><br/></td></tr>
<tr class="memitem:ga34e288de7d99df065f1e5866144af139"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga34e288de7d99df065f1e5866144af139">nc_rpc_copyconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source, <a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target, const char *data)</td></tr>
<tr class="memdesc:ga34e288de7d99df065f1e5866144af139"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;copy-config&gt; NETCONF rpc message.  <a href="#ga34e288de7d99df065f1e5866144af139"></a><br/></td></tr>
<tr class="memitem:ga629917bffa41d8c8714cfaa0c0630857"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga629917bffa41d8c8714cfaa0c0630857">nc_rpc_deleteconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target)</td></tr>
<tr class="memdesc:ga629917bffa41d8c8714cfaa0c0630857"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;delete-config&gt; NETCONF rpc message.  <a href="#ga629917bffa41d8c8714cfaa0c0630857"></a><br/></td></tr>
<tr class="memitem:ga4fd8840f089561622f01dbdf64ceca42"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4fd8840f089561622f01dbdf64ceca42">nc_rpc_editconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target, <a class="el" href="../../d3/d7a/netconf_8h.html#a5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a> default_operation, <a class="el" href="../../d3/d7a/netconf_8h.html#a8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a> error_option, const char *data)</td></tr>
<tr class="memdesc:ga4fd8840f089561622f01dbdf64ceca42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;edit-config&gt; NETCONF rpc message.  <a href="#ga4fd8840f089561622f01dbdf64ceca42"></a><br/></td></tr>
<tr class="memitem:ga6818afbecf7fedf78f620162de78b4fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga6818afbecf7fedf78f620162de78b4fd">nc_rpc_get</a> (const struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga6818afbecf7fedf78f620162de78b4fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;get&gt; NETCONF rpc message.  <a href="#ga6818afbecf7fedf78f620162de78b4fd"></a><br/></td></tr>
<tr class="memitem:ga4ae747c4c96e1d3621745e122091ba11"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga4ae747c4c96e1d3621745e122091ba11">nc_rpc_getconfig</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> source, const struct nc_filter *filter)</td></tr>
<tr class="memdesc:ga4ae747c4c96e1d3621745e122091ba11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;get-config&gt; NETCONF rpc message.  <a href="#ga4ae747c4c96e1d3621745e122091ba11"></a><br/></td></tr>
<tr class="memitem:gae9876e8d038eb81a376bd82a08c58b95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gae9876e8d038eb81a376bd82a08c58b95">nc_rpc_killsession</a> (const char *kill_sid)</td></tr>
<tr class="memdesc:gae9876e8d038eb81a376bd82a08c58b95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;kill-session&gt; NETCONF rpc message.  <a href="#gae9876e8d038eb81a376bd82a08c58b95"></a><br/></td></tr>
<tr class="memitem:ga6a03d40e00fbe019a34541a55f3f4a31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#ga6a03d40e00fbe019a34541a55f3f4a31">nc_rpc_lock</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target)</td></tr>
<tr class="memdesc:ga6a03d40e00fbe019a34541a55f3f4a31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;lock&gt; NETCONF rpc message.  <a href="#ga6a03d40e00fbe019a34541a55f3f4a31"></a><br/></td></tr>
<tr class="memitem:gad843551f9d1ff8be6a118d026e8b995a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gad843551f9d1ff8be6a118d026e8b995a">nc_rpc_unlock</a> (<a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> target)</td></tr>
<tr class="memdesc:gad843551f9d1ff8be6a118d026e8b995a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create &lt;unlock&gt; NETCONF rpc message.  <a href="#gad843551f9d1ff8be6a118d026e8b995a"></a><br/></td></tr>
<tr class="memitem:gaa9ad7fac41fdef0063c2e2793fb19efd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/de9/group__rpc.html#gaa9ad7fac41fdef0063c2e2793fb19efd">nc_rpc_generic</a> (const char *data)</td></tr>
<tr class="memdesc:gaa9ad7fac41fdef0063c2e2793fb19efd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a generic NETCONF rpc message with specified content.  <a href="#gaa9ad7fac41fdef0063c2e2793fb19efd"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>libnetconf's functions for handling NETCONF &lt;rpc&gt; messages. </p>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="gab21d1d39737065c552f2ccc5b4819262"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct nc_msg <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>rpc message. </p>

<p>Definition at line <a class="el" href="../../d3/d7a/netconf_8h_source.html#l00049">49</a> of file <a class="el" href="../../d3/d7a/netconf_8h_source.html">netconf.h</a>.</p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="ga4088fac1dd592062b27ff5b0e1708d00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of &lt;rpc&gt; operation types. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ae27a06c29d4cb56cce4298bc54dc498a"></a>NC_RPC_UNKNOWN</em>&nbsp;</td><td>
<p>value describing that no supported operation type was detected so far </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00a4c352cf3bf15069fc76e4ac698de0a8c"></a>NC_RPC_HELLO</em>&nbsp;</td><td>
<p>&lt;hello&gt; message type, same as NC_REPLY_HELLO </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ab9542d7955d9821f23b5909f3dbec7bb"></a>NC_RPC_DATASTORE_READ</em>&nbsp;</td><td>
<p>&lt;rpc&gt; contains operation reading datastore </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00ab283d1c39df65fe56607329bc3c946f9"></a>NC_RPC_DATASTORE_WRITE</em>&nbsp;</td><td>
<p>&lt;rpc&gt; contains operation modifying datastore </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga4088fac1dd592062b27ff5b0e1708d00aa7e77d1cd094384f2683352c63a4fccb"></a>NC_RPC_SESSION</em>&nbsp;</td><td>
<p>&lt;rpc&gt; contains operation affecting session </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="../../d3/d7a/netconf_8h_source.html#l00109">109</a> of file <a class="el" href="../../d3/d7a/netconf_8h_source.html">netconf.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga3e6fc59e2d06c1c0edb36ee64ee9cc07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of supported &lt;rpc&gt; operations. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a7ca4781a2c8644c3c15e3b0cd9116090"></a>NC_OP_UNKNOWN</em>&nbsp;</td><td>
<p>unknown/error value </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a9f918e6ed1c58fb70ffe4cbd05882332"></a>NC_OP_GETCONFIG</em>&nbsp;</td><td>
<p>&lt;get-config&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07ae7c153c569fe9ca06532dadc41dce78f"></a>NC_OP_GET</em>&nbsp;</td><td>
<p>&lt;get&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a545f2b8ad13fc1cb449f078908312ef1"></a>NC_OP_EDITCONFIG</em>&nbsp;</td><td>
<p>&lt;edit-config&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07af5cc206ce4cd2b20cd562bb01e0a8da3"></a>NC_OP_CLOSESESSION</em>&nbsp;</td><td>
<p>&lt;close-session&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07a01a1b829ca743ac8f8e8444d71f16d0d"></a>NC_OP_KILLSESSION</em>&nbsp;</td><td>
<p>&lt;kill-session&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07abc36a612cfba2cf3462d99fae4ab4ac5"></a>NC_OP_COPYCONFIG</em>&nbsp;</td><td>
<p>&lt;copy-config&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07abf39ac97e04fd8d77d6a409a004eb234"></a>NC_OP_DELETECONFIG</em>&nbsp;</td><td>
<p>&lt;delete-config&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07af07ffd285bc743fcbdeace96f2b21d22"></a>NC_OP_LOCK</em>&nbsp;</td><td>
<p>&lt;lock&gt; operation </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga3e6fc59e2d06c1c0edb36ee64ee9cc07aa4071db38c423865b24543cb504a4b42"></a>NC_OP_UNLOCK</em>&nbsp;</td><td>
<p>&lt;unlock&gt; operation </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="../../d3/d7a/netconf_8h_source.html#l00121">121</a> of file <a class="el" href="../../d3/d7a/netconf_8h_source.html">netconf.h</a>.</p>

</div>
</div>
<a class="anchor" id="ga9e74498f9118686c7fb8dfe2c2459706"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of supported NETCONF filter types. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga9e74498f9118686c7fb8dfe2c2459706ab584539474b828102a0b7238b614abd4"></a>NC_FILTER_SUBTREE</em>&nbsp;</td><td>
<p>NC_FILTER_SUBTREE. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="../../d3/d7a/netconf_8h_source.html#l00208">208</a> of file <a class="el" href="../../d3/d7a/netconf_8h_source.html">netconf.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga9a4b99f1ccfbf736f35730ea45bed8dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a> <a class="el" href="../../db/de9/group__rpc.html#ga9a4b99f1ccfbf736f35730ea45bed8dc">nc_session_send_rpc</a> </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send &lt;rpc&gt; request via specified NETCONF session. This function is supposed to be performed only by NETCONF clients. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;rpc&gt; message to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>0 on error,<br/>
 message-id of sent message on success. </dd></dl>

</div>
</div>
<a class="anchor" id="ga30e4280a6d10447d210ebdfb2befb4c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a> <a class="el" href="../../db/de9/group__rpc.html#ga30e4280a6d10447d210ebdfb2befb4c6">nc_session_recv_rpc</a> </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> **&#160;</td>
          <td class="paramname"><em>rpc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receive &lt;rpc&gt; request from the specified NETCONF session. This function is supposed to be performed only by NETCONF servers. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rpc</td><td>Received &lt;rpc&gt; </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>0 on error,<br/>
 message-id of received message on success. </dd></dl>

</div>
</div>
<a class="anchor" id="ga53db624265a53d44d597c9ac7df74259"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/de2/group__reply.html#ga40338a1274759a932a7c2c7b8ed0121d">nc_reply</a>* <a class="el" href="../../db/de9/group__rpc.html#ga53db624265a53d44d597c9ac7df74259">nc_session_send_recv</a> </td>
          <td>(</td>
          <td class="paramtype">struct nc_session *&#160;</td>
          <td class="paramname"><em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send &lt;rpc&gt; and receive &lt;rpc-reply&gt; via the specified NETCONF session. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">session</td><td>NETCONF session to use. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>RPC message to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Received &lt;rpc-reply&gt;. </dd></dl>

</div>
</div>
<a class="anchor" id="ga3212b7af605b6bdf83b893979c3bcc79"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct nc_filter* <a class="el" href="../../db/de9/group__rpc.html#ga3212b7af605b6bdf83b893979c3bcc79">nc_filter_new</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#ga9e74498f9118686c7fb8dfe2c2459706">NC_FILTER_TYPE</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create new NETCONF filter of the specified type. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>Type of the filter. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>Filter content. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created NETCONF filter structure. </dd></dl>

</div>
</div>
<a class="anchor" id="ga0dbfd598d6fd303819817370cdf63229"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../db/de9/group__rpc.html#ga0dbfd598d6fd303819817370cdf63229">nc_filter_free</a> </td>
          <td>(</td>
          <td class="paramtype">struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy filter structure. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>Filter to destroy. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga3e840368c40be2ea4d5201edbd3adaca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca">nc_rpc_dump</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dump the rpc message into a string. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>String in XML format containing the NETCONF's &lt;rpc&gt; element and all its content. Caller is responsible for free of returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="ga16bda6ae6ad26653e8793abf58ebec2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga16bda6ae6ad26653e8793abf58ebec2b">nc_rpc_build</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>rpc_dump</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Build &lt;rpc&gt; message from the string. This is the reverse function of the <a class="el" href="../../db/de9/group__rpc.html#ga3e840368c40be2ea4d5201edbd3adaca" title="Dump the rpc message into a string.">nc_rpc_dump()</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc_dump</td><td>String containing the NETCONF &lt;rpc&gt; message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Complete rpc structure used by libnetconf's functions. </dd></dl>

</div>
</div>
<a class="anchor" id="ga3bb3dd2d08b439d612f5954e3ce78205"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d52/group__session.html#ga076533ff0185f0be79fa9edbed22e0b7">nc_msgid</a> <a class="el" href="../../db/de9/group__rpc.html#ga3bb3dd2d08b439d612f5954e3ce78205">nc_rpc_get_msgid</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get message-id of the given rpc. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>message-id of the given rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gabf639574395456fb6f4bade36fb4babd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga3e6fc59e2d06c1c0edb36ee64ee9cc07">NC_OP</a> <a class="el" href="../../db/de9/group__rpc.html#gabf639574395456fb6f4bade36fb4babd">nc_rpc_get_op</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get operation of the given rpc. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Operation identification of the given rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gade3f111e7c7727d512313b4875fd8f50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="../../db/de9/group__rpc.html#gade3f111e7c7727d512313b4875fd8f50">nc_rpc_get_op_content</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get content of the operation specification from the given rpc. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>String in XML form starting with the operation name element. Caller is responsible for free of returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="gaa502fb30575000775b29a764101c1bef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#ga4088fac1dd592062b27ff5b0e1708d00">NC_RPC_TYPE</a> <a class="el" href="../../db/de9/group__rpc.html#gaa502fb30575000775b29a764101c1bef">nc_rpc_get_type</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get type of the rpc message. </p>
<p>&lt;rpc&gt; message can affect datastore, session or it can be unknown for the libnetconf (defined by some of unsupported capability or device configuration model)</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>One of the NC_RPC_TYPE. </dd></dl>

</div>
</div>
<a class="anchor" id="gab240067d45d58c945cdfd61948751379"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> <a class="el" href="../../db/de9/group__rpc.html#gab240067d45d58c945cdfd61948751379">nc_rpc_get_target</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get target datastore type (running, startup, candidate) of the rpc request. </p>
<p>For &lt;rpc&gt; message that does not affect datastore (e.g. kill-session), the NC_DATASTORE_NONE is returned.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>One of the NC_DATASTORE. </dd></dl>

</div>
</div>
<a class="anchor" id="ga3fcf5083b04a294e935a2897c212065b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a> <a class="el" href="../../db/de9/group__rpc.html#ga3fcf5083b04a294e935a2897c212065b">nc_rpc_get_source</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get source datastore type (running, startup, candidate) of the rpc request. </p>
<p>For &lt;rpc&gt; message that does not affect datastore (e.g. kill-session), the NC_DATASTORE_NONE is returned.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>One of the NC_DATASTORE. </dd></dl>

</div>
</div>
<a class="anchor" id="ga05a10e0b6c89ac04426410f399b87257"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="../../db/de9/group__rpc.html#ga05a10e0b6c89ac04426410f399b87257">nc_rpc_get_config</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get serialized content of the config parameter (&lt;config&gt; itself is not part of the returned data). This function is valid only for &lt;copy-config&gt; and &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;copy-config&gt; or &lt;edit-config&gt; rpc message.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Serialized XML or NULL if not available. Caller is responsible for free of returned string with free(). </dd></dl>

</div>
</div>
<a class="anchor" id="gaf867eacee93e3596371415d028e62d29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d7a/netconf_8h.html#a5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a> <a class="el" href="../../db/de9/group__rpc.html#gaf867eacee93e3596371415d028e62d29">nc_rpc_get_defop</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get default-operation type, valid only for &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;edit-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>One of the NC_EDIT_DEFOP_TYPE, NC_EDIT_DEFOP_ERROR in case of error. </dd></dl>

</div>
</div>
<a class="anchor" id="ga488f894b9fa4866326837a9ed0575e36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d7a/netconf_8h.html#a8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a> <a class="el" href="../../db/de9/group__rpc.html#ga488f894b9fa4866326837a9ed0575e36">nc_rpc_get_erropt</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get error-option type, valid only for &lt;edit-config&gt; RPCs. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>&lt;edit-config&gt; rpc message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>One of the NC_EDIT_ERROPT_TYPE, NC_EDIT_ERROPT_ERROR in case of error </dd></dl>

</div>
</div>
<a class="anchor" id="ga4041bda37caa9eedb7a1e2534280f3df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../db/de9/group__rpc.html#ga4041bda37caa9eedb7a1e2534280f3df">nc_rpc_free</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a> *&#160;</td>
          <td class="paramname"><em>rpc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rpc</td><td>rpc message to free. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga34e288de7d99df065f1e5866144af139"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga34e288de7d99df065f1e5866144af139">nc_rpc_copyconfig</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;copy-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Source configuration datastore type. If the NC_DATASTORE_NONE is specified, data parameter is used as the complete configuration to copy. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be replaced. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>If the NC_DATASTORE_NONE is specified as the source, data parameter is used as the complete configuration to copy. For other types of source datastore, this parameter is ignored. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga629917bffa41d8c8714cfaa0c0630857"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga629917bffa41d8c8714cfaa0c0630857">nc_rpc_deleteconfig</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;delete-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be deleted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4fd8840f089561622f01dbdf64ceca42"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga4fd8840f089561622f01dbdf64ceca42">nc_rpc_editconfig</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d7a/netconf_8h.html#a5852fd110198481afb37cc8dcf0bf454">NC_EDIT_DEFOP_TYPE</a>&#160;</td>
          <td class="paramname"><em>default_operation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d7a/netconf_8h.html#a8eb32ba579043f2750fa8558d9284b32">NC_EDIT_ERROPT_TYPE</a>&#160;</td>
          <td class="paramname"><em>error_option</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;edit-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be edited. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">default_operation</td><td>Default operation for this request, 0 to skip setting this parameter and use default server's ('merge') behavior. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">error_option</td><td>Set reaction to an error, 0 for the server's default behavior. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>edit-config operation request description. The content of this parameter is sent to server as a content of the &lt;config&gt; element.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga6818afbecf7fedf78f620162de78b4fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga6818afbecf7fedf78f620162de78b4fd">nc_rpc_get</a> </td>
          <td>(</td>
          <td class="paramtype">const struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;get&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>NETCONF filter or NULL if no filter required. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4ae747c4c96e1d3621745e122091ba11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga4ae747c4c96e1d3621745e122091ba11">nc_rpc_getconfig</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct nc_filter *&#160;</td>
          <td class="paramname"><em>filter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;get-config&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td>Source configuration datastore type being queried. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filter</td><td>NETCONF filter or NULL if no filter required. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gae9876e8d038eb81a376bd82a08c58b95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#gae9876e8d038eb81a376bd82a08c58b95">nc_rpc_killsession</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>kill_sid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;kill-session&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">kill_sid</td><td>ID of session to kill. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="ga6a03d40e00fbe019a34541a55f3f4a31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#ga6a03d40e00fbe019a34541a55f3f4a31">nc_rpc_lock</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;lock&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be locked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gad843551f9d1ff8be6a118d026e8b995a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#gad843551f9d1ff8be6a118d026e8b995a">nc_rpc_unlock</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d67/group__store.html#ga5e4b9ee138b963e8ea2354fef2ebbe73">NC_DATASTORE</a>&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create &lt;unlock&gt; NETCONF rpc message. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Target configuration datastore type to be unlocked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
<a class="anchor" id="gaa9ad7fac41fdef0063c2e2793fb19efd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262">nc_rpc</a>* <a class="el" href="../../db/de9/group__rpc.html#gaa9ad7fac41fdef0063c2e2793fb19efd">nc_rpc_generic</a> </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a generic NETCONF rpc message with specified content. </p>
<p>Function gets data parameter and envelope it into &lt;rpc&gt; container. Caller is fully responsible for the correctness of the given data.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>XML content of the &lt;rpc&gt; request to be sent. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Created rpc message. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>

    <li class="footer">Generated on Fri Aug 3 2012 08:25:37 for libnetconf by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0-20120409 </li>
   </ul>
 </div>


</body>
</html>
